package com.example.demo.student.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.student.entity.Student;
import com.example.demo.student.mapper.StudentMapper;
import com.example.demo.student.service.IStudentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yuanzheng
 * @since 2021-09-26
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements IStudentService {

    @Resource
    private StudentMapper studentMapper;

    @Override
    public int saveStudent(Student student) {
        return studentMapper.saveStudent(student);
    }
}
